#include <stdio.h>
#include <stdlib.h>
#include <string.h>

void up(char* t) {
    if (*t <= 'z' && *t >= 'a') {
        *t += 'A' - 'a';
    }
}

int main() {
    char* s = (char*)malloc(100 * sizeof(int));
    FILE* fp = fopen("./data.in", "r");
    size_t size;
    while (getline(&s, &size, fp) > 0) {
        int len = strlen(s);
        for (int i = 0; i < len; i++) {
            if (i == 0 || s[i - 1] == ' ' || s[i - 1] == '\t' ||
                s[i - 1] == '\r' || s[i - 1] == '\n') {
                up(&s[i]);
            }
        }
        printf("%s\n", s);
    }
}